package com.qf.service.impl;

import com.qf.dao.Impl.UserDaoImpl;
import com.qf.dao.UserDao;
import com.qf.service.UserService;

import javax.annotation.PostConstruct;

/**
 * Create by 周志豪 on 2022/8/26  17:15
 *
 * @authoe 周志豪
 * @veision 1.0
 * //TODO  想好了再去做
 * @since 1.0
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao=new UserDaoImpl();

    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
    }


    @Override
    public void adduser() {

        userDao.addUser();
        System.out.println("UserServiceImpl中的adduser方法执行了！");
    }

    @PostConstruct
    public void init(){
        System.out.println("UserServiceImpl中的init方法执行了！");
    }
    public void destroy(){
        System.out.println("UserServiceImpl中的destroy方法执行了！");
    }
}
